BIN = code
SRC = $(wildcard *.cpp)
OBJ = $(SRC:.cpp=.o)
CXX = g++

$(BIN) : $(OBJ)
	$(CXX) -o $@ $^
%.o : %.cpp
	$(CXX) -c $@ $<

.PHONY:clean
clean:
	@rm -rf $(BIN) $(OBJ)
.PHONY:run
run:
	@./$(BIN)
.PHONY:cat
cat:
	@cat file.txt
